#!/bin/bash
#
# Does nothing but print a message that the kernel has been loaded. Useful
# for testing the Pulley installation and configuration.
#
# Author:   Dr. Mike Murphy (mmurphy2@coastal.edu)
# Revision: 18 November 2013
#
#   Copyright 2013 Coastal Carolina University
#
#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
#


## p_cmd_load_kernel_help
##
## Echoes help information for the load_kernel command. Returns 0.
##
function p_cmd_load_kernel_help() {
	cat << EOF
Usage: pulley load_kernel

Loads the Pulley kernel and configuration files, testing for major errors.
The command exit status will be 0 if no errors are detected, non-zero if
errors occur.

Note that the tests performed by this command are limited to basic syntax
and file presence tests. There is no guarantee that directives or functions
loaded from configuration files will work successfully. Also, this command
does NOT load the subscription file.
EOF
	return 0
}


## p_cmd_load_kernel_summary
##
## Echoes summary information for the load_kernel command. Returns 0.
##
function p_cmd_load_kernel_summary() {
	echo "Loads the Pulley kernel and runs basic tests"
	return 0
}


## p_cmd_load_kernel
##
## Implements the load_kernel command, printing a message indicating that
## the kernel has been loaded. Returns 0.
##
function p_cmd_load_kernel() {
	echo "Kernel loaded successfully"
	return 0
}
